package com.tjetc.controller;
import com.tjetc.domain.MedicineList;
import com.tjetc.service.impl.MedicineListServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (medicine_list)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/medicine_list")
public class MedicineListController {
/**
* 服务对象
*/
@Resource
private MedicineListServiceImpl medicineListServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public MedicineList selectOne(Integer id) {
return medicineListServiceImpl.selectByPrimaryKey(id);
}

}
